package org.syx.edl.entity;

import lombok.Data;
import org.syx.edl.validate.FixDecimal;

import javax.validation.constraints.*;
import java.math.BigDecimal;

/**
 * @author:whh
 * @date: 2025-09-05 22:28
 * <p></p>
 */
@Data
public class User {
    @NotNull
    private String username;

    @Min(value = 2)
    @Max(value = 100)
    private int age;
    @FixDecimal(scale = 2)
    private BigDecimal salary;

    @Digits(integer = 3,fraction = 2)
    private double tall;






}
